<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div class="head"></div>
    <div class="content">中间的内容</div>
    <div class="foot"></div>
    <script src="../jquery.min.js"></script>

    <script>
      $.ajax({
        url: "head.html",
        success(res) {
          document.querySelector(".head").innerHTML = res;
        },
      });
      // 发送ajax请求html然后填充到.foot容器里；
      $(".foot").load("foot.html");
    </script>
  </body>
</html>
